<?php echo $header; ?>
<div id="content">
    <div class="breadcrumb">
        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
        <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
        <?php } ?>
    </div>
    <?php if ($error_warning) { ?>
    <div class="warning"><?php echo $error_warning; ?></div>
    <?php } ?>
    <div class="box">
        <div class="heading">
            <h1><img src="view/image/category.png" alt="" /> <?php echo $heading_title; ?></h1>
            <div class="buttons"><a onclick="$('#form').submit();" class="button"><?php echo $button_save; ?></a><a onclick="location = '<?php echo $cancel; ?>';" class="button"><?php echo $button_cancel; ?></a></div>
        </div>
        <div class="content">
            <form action="" method="post" id="form">
                <div id="tab-posting">
                    <?php if($cron){ ?>
                    <table class="form">
                        <tr>
                            <td>
                                <strong><?php echo $text_edit_cron; ?></strong>
                                <input type="hidden" name="cron[name]" value="<?php echo $cron['name']; ?>" />
                            </td>
                        </tr>
                        <tr>
                            <td><strong><?php echo $entry_month; ?></strong></td>
                            <td>
                                <input type="text" size="40" name="cron[month]" value="<?php echo $cron['month']; ?>" />
                                <?php if ($error_cron_month) { ?>
                                <br />
                                <span class="error"><?php echo $error_cron_month; ?></span>
                                <?php } ?>
                            </td>
                        </tr>
                        <tr>
                            <td><strong><?php echo $entry_week; ?></strong></td>
                            <td>
                                <input type="text" size="40" name="cron[weekday]" value="<?php echo $cron['weekday']; ?>" />
                                <?php if ($error_cron_weekday) { ?>
                                <br />
                                <span class="error"><?php echo $error_cron_weekday; ?></span>
                                <?php } ?>
                            </td>
                        </tr>
                        <tr>
                            <td><strong><?php echo $entry_day; ?></strong></td>
                            <td>
                                <input type="text" size="40" name="cron[day]" value="<?php echo $cron['day']; ?>" />
                                <?php if ($error_cron_day) { ?>
                                <br />
                                <span class="error"><?php echo $error_cron_day; ?></span>
                                <?php } ?>
                            </td>
                        </tr>
                        <tr>
                            <td><strong><?php echo $entry_hour; ?></strong></td>
                            <td>
                                <input type="text" size="40" name="cron[hour]" value="<?php echo $cron['hour']; ?>" />
                                <?php if ($error_cron_hour) { ?>
                                <br />
                                <span class="error"><?php echo $error_cron_hour; ?></span>
                                <?php } ?>
                            </td>
                        </tr>
                        <tr>
                            <td><strong><?php echo $entry_minute; ?></strong></td>
                            <td>
                                <input type="text" size="40" name="cron[minute]" value="<?php echo $cron['minute']; ?>" />
                                <?php if ($error_cron_minute) { ?>
                                <br />
                                <span class="error"><?php echo $error_cron_minute; ?></span>
                                <?php } ?>
                            </td>
                        </tr>
                        <tr>
                            <td><strong><?php echo $entry_file_name; ?></strong></td>
                            <td>
                                <input type="text" size="40" name="cron[file_name]" value="<?php echo $cron['file_name']; ?>" />
                                <?php if ($error_cron_file_name) { ?>
                                <br />
                                <span class="error"><?php echo $error_cron_file_name; ?></span>
                                <?php } ?>
                            </td>

                        </tr>
                    </table>
                    <?php } ?>
                </div>
            </form>
        </div>
    </div>
</div>
<?php echo $footer; ?>